package com.shop.controller;


import com.shop.common.result.util.ResultModel;
import com.shop.service.MenuConfigService;
import com.shop.vo.SelectMenuConfigByTypeVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 菜单配置表 前端控制器
 * </p>
 *
 * @author 靳 旺
 * @since 2021-03-14
 */
@RestController
@Api(tags = "菜单配置前端控制器")
@RequestMapping("/menu-config-do")
public class MenuConfigController {

    @Autowired
    private MenuConfigService menuConfigService;


    @ApiOperation(value = "查询菜单配置",notes = "靳旺")
    @PostMapping("selectMenuConfigByType")
    public ResultModel selectMenuConfigByType(@RequestBody SelectMenuConfigByTypeVo selectMenuConfigByTypeVo)throws Exception{
        return menuConfigService.selectMenuConfigByType(selectMenuConfigByTypeVo);
    }

}
